package com.linzp.bishe.mapper;

import com.linzp.bishe.entity.Participants;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 林泽鹏
 * @since 2021-11-01
 */
@Mapper
public interface ParticipantsMapper extends BaseMapper<Participants> {
	public boolean updateNameByUsersId(@Param("id")Integer id, @Param("name")String name);

	public List<Participants> getListOfParticipants(@Param("fk") Integer fk,@Param("tableName") String tableName);

	public Integer getCountParticipants(@Param("fk") Integer fk,@Param("tableName") String tableName);
}
